home *** CD-ROM | disk | FTP | other *** search
- /* $Id: x10c.c,v 1.6 1994/06/30 17:57:43 mjl Exp $
- * $Log: x10c.c,v $
- * Revision 1.6 1994/06/30 17:57:43 mjl
- * All C example programs: made another pass to eliminate warnings when using
- * gcc -Wall. Lots of cleaning up: got rid of includes of math.h or string.h
- * (now included by plplot.h), eliminated redundant casts, put in more
- * uniform comments, and other minor changes.
- *
- * Revision 1.5 1994/03/30 07:21:54 mjl
- * Changes to all C example programs: special handling for malloc re: header
- * files eliminated, include of stdio.h and stdlib.h eliminated (now done
- * by plplot.h), include of "plplot.h" changed to <plplot.h> to enable
- * simpler builds by the general user, some cleaning up also.
- */
-
- /* x10c.c
-
- Window positioning demo.
- */
-
- #include <plplot.h>
-
- /*----------------------------------------------------------------------*\
- * main
- *
- * Demonstrates absolute positioning of graphs on a page.
- \*----------------------------------------------------------------------*/
-
- int
- main(int argc, char *argv[])
- {
-
- /* Parse and process command line arguments */
-
- (void) plParseInternalOpts(&argc, argv, PL_PARSE_FULL);
-
- /* Initialize plplot */
-
- plinit();
-
- pladv(0);
- plvpor(0.0, 1.0, 0.0, 1.0);
- plwind(0.0, 1.0, 0.0, 1.0);
- plbox("bc", 0.0, 0, "bc", 0.0, 0);
-
- plsvpa(50.0, 150.0, 100.0, 150.0);
- plwind(0.0, 1.0, 0.0, 1.0);
- plbox("bc", 0.0, 0, "bc", 0.0, 0);
- plptex(0.5, 0.5, 1.0, 0.0, 0.5, "BOX at (50,150,100,150)");
- plend();
- exit(0);
- }
-